﻿using Sunny.UI;
using System;
using System.ComponentModel;
using System.Windows.Forms;

namespace CoreShop.App
{
    //C# WinForm解决Panel控件中的图片刷新时会闪烁的问题
    public partial class YzFlowLayoutPanel : UIFlowLayoutPanel
    {
        public YzFlowLayoutPanel()
        {
            InitializeComponent();
        }

        protected override void OnGotFocus(EventArgs e)
        {
            //base.OnGotFocus(e);
            //Panel.Focus();
        }

        protected override void OnMouseEnter(EventArgs e)
        {
            //base.OnMouseEnter(e);
            //Panel.Focus();
        }

        protected override void OnMouseWheel(MouseEventArgs e)
        {
            //不调用基类方法，从而阻止事件处理
            //base.OnMouseWheel(e);            
        }

        public static implicit operator FlowLayoutPanel(YzFlowLayoutPanel v)
        {
            throw new NotImplementedException();
        }
    }
}
